fix PREVIOUS and NEXT time naviguation