Fixed pemDecode scope.