Fixing bug in turning algorithm