Fix bug in Chrome