delete duplicate "then". Issue #35