fixing bug in chrome