Bug fixes for loading of objects form PBDB lazily