fixed a bug about resizing columns