Fix to prevent page bounce