fix some error msgs