bug fixing in chrome.cs code