fixing hover logic