Fixed many errors.