fixing type detection for bank accounts