Fixes intermine/intermine#319