fix api create before callback init