Conditional order flaw

I issued a conditional order to buy VXX which the parent order was to sell XIV (the only position). The buy VXX order was cancelled due to cash shortage. Point is the trade required $16k and after the parent order was filled my cash should be over $20k, thus I had plenty of cash to make the trade. Is there a way to overcome this problem?