Issue 1167

Proposed fix for issue #1167.

I don't have a working environment for Iris master branch right now but I think this change is so trivial it will probably work without testing.  I'm happy to work on it further if it doesn't work.