Fixed exception thrown when setting columns for the first time