Fix backbutton handling.