Fix for Chrome browsers and patterns