fix api file loading issue.