fixed fatal error if stored object is not an instance of storageobject