Fixed bug in turning.