bug in displaying figure when no valid set