fix Callback type incompatibility