fixed API build error