fixed error trying to write data when there is no pic price