handle exception when tag does not exist