Overlay not hidden on first load fixed