fix: crash when console resize