Add default length and fix error on new columns

Fix issue #428 and #438.