Fixed a bug in addColumns causing an infinite loop locking up browsers