fixed API bug using the external src of the API