Fix text area resize when switching pages