Fix console disappearing when switching files