fixed bank fragmentation bug