fix a few errors