Fix column resizing issues
Fix possible crashes. Closes #1814.