Fix bank switching in Flash