fixed syntax error when serializing turtle.