fix back button, as suggested by zousu at issue #2