fixing some errors.