Fix a bug in the ticket qty validation logic.