Add dot at the end of the invalid command.