Bug #1: Empty quantity raises error