Fix #1348054 [Private bug](https://bugs.launchpad.net/calibre/+bug/1348054)