fixed condition for empty tag's list