Patch for cases there are no goals in the environment