fixed a bug with back to home button