fixed blood memory leak