Fixing code errors.