Fix to http://jira.diamond.ac.uk/browse/SCI-268
A bit risky