Fixed bind_resources error