Add the final dot at the right place