Pressing x does not go back in history