Fixed rendering after terminal resize.