solves the hovering persist issue