fixed bug with in ensureReadWriteModeActivated to make sure that tags are stored