fixed bug with btc buy: total was not being updated before flow control used its comparison