Started to fix all the bugs I made.

I have an error message, I need to make it accept pressing buttons with
nothing selected better. Error in comment.