fix bug on IE/Chrome