fixed callback failed code