fixing a bug in chrome