Fixes intermine/intermine#321