fix bug in chrome