bug fix for jWT compatibility