Fix to prevent loading a collection wihout an id