Fixed dynamic loading of APIs. Must be sync to work properly.