fixed a few errors.