Change method for fixing hover bug with transitions.