fixed ; in right-click commit

there were two ; behind two if statements, didn't break the code, but
needed to be fixed