Fixed a few code errors.