fixed syntax error in update