Fix http://jira.diamond.ac.uk/browse/DAWNSCI-586