fix ending syntax error