fix bug: oom in permgen