fixed issue in alter/update statement