fixed null value for buyprice