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