Fixing issue with navigation when scrollLocked = true