bugfix for mouse click