fixed IIFE error