fixed more bugs in bank part. Haven't fixed the stock part.