Fixing bug in Chrome