Fix next/prev buttons