Fixed the first turn function.