Tweak to fix XSS error in chrome