fix ioCountForPrice