A fix for intermine/intermine#335