Fixing bug screen orientation change causes finish() to be called