Fix unconfigured pattern bug