Fix syntax error and package import error.