bug fix
Bug fix (prevent pricing if any amount is NaN)