Found a bug, it looks random but it's there nonetheless.
Fix: free env before calling JLG.