fix IIFE bug