fix a bug on IE<8 & a cond. statement