fix an exception
Merge pull request #533 from superdry/fix

fix an exception