Fix page first refresh