Fixing a mistake on right clicking