Withdraw agent works, still don't know what weird error is, now I just need to add some testcases