quantity bug