if...else if...else is broken. Fixes #1275