fix selection bug for IE