fix stack overflow error
fix ie5mac test