Why the rate becomes zero after quantity change in Sales contract details?

Cause: In the Sales Contract, If users are mentioning the price list in the Sales contract header, then on quantity change the rate becomes zero and users have to enter rate manually.
Note:
While doing the Sales order rate will pick up the rate from the pricelist .
Remedies:
If users do not require the price list then remove from the header of the Sales contract . In this case rate will remain as it is on quantity change.