Fixed silly mistake in detail mesh next(), prev() functions