Fix: error with card type filter when number is undefined