correction bug generation json