fix problem in 'each' in ie8