fix right click detection