Is there a limiting principle to Shelly v. Kramer.

Wasn’t the covenant on file at the courthouse as a part of the public record? If so, then Shelley would not be a BFP as he had constructive notice.