fixes a few small errors