Removing some bugs in pattern config.