fix mousePressed when not gui