fix bug in the functionality "checking"
fix typo in template
fix #101 Null values not generated correctly