revert to v2.12.0 code for ie6 compatibility