fix some careless mistakes