fix for term.js resize