An tighter fix to http://jira.diamond.ac.uk/browse/SCI-61