fixed bug with type checking on price