Fix parsing error when saving positions to database.