Fix from
https://github.com/stormpath/idsite-src/commit/bce8e2fe7391fae390ed932844f19238037179f4