Fix bug in checking return value of create_cb