fix average buy price