fixes backward  navigation issue with random