try to fix bugs in mean price