fixed bug in mouse click