fixing IE issue, conditional