fix: return exception in getTags and removeTags methods