Prevent unnecessary event generation