fixed bug for IE6/7