fix for next/prev location