Removes error in turn function