Fix crash with pattern colors