Fixed NullPointerException when signing out