fixed some misc errors.