Fixing issue where back button needed to be pressed twice to exit after
just opening