Revert "fix sys.ji build segfault regression"

This reverts commit c3cbd007ae7a6a71dffc50e171a852d4f3ccbbce.
Proper fix for the sys.ji segfault