trying a fix proposed at http://stackoverflow.com/a/16282949/66686