FIxed Chrome and Firefox bug with pattern