Fixing a bug in Chrome