Fix bug in loading the objectstore.

@devoncarew TBR