Prevent triggering wrong selecting event