fixed weird things with clicking