Fix the next/prev buttons