Fix http://jira.diamond.ac.uk/browse/SCI-920