fix unassigned variable error in ie8