Fix issue #80: check empty value when insert code