fix notices on missing optional values, issue #219