fixed a bug in cycle in ie