Fix bug in chrome