fixed back travel function