Fixed pattern bug