fix compute price bug