Fixes intermine/intermine#354