some bug fix for IE