fix buggy exr bcond

broken commit was from e3f9f772