Fixed mistake in next/prev patterns