fix odd small patterns