more minor fix on pattern