fixed bug caused by large price overflows