fix for median_price not being updated issue