fixed bug with adding and removing columns