Fix turtle error checking