Fixes intermine/intermine#371