Fixed a bug when not activated objectstorage