remove a wrong ',' end of a object