Fixed error when attempting to access datastore