Fix bug in validating price