fix bug with qty data initialization