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