fixed bug in Chrome