fix problem with quantity in register post type