fixed bug with Chrome