fixed bug in chrome