Both are correct. But here it's just a matter of time frame: "had been vs was."
had been - expresses the duration of the action ( it had been there [for/before some time] );
was - on the other hand, is a simple tense ( it is not specified whether the action was ongoing);
That said, neither can be regarded more or less correct. It mainly depends ...