Added fix for pattern fill