fixing IE can not defined issue