fix bug in Chrome