fixed avgprice validation