Fixing wrong API definition in header file