Fix ex app (issue #4136)