fixed some errors.