Prevent double hide operations