Fixed lots of errors.