fix issue #86 : Converter is broken with certain if conditions