update to buycontroller to fix value check