another attempy to fix ag buy bug