Fixes small problems with clicking buttons