fix genIf by removing obsolete statement