fixing a bug with latest changes in chrome