fix compile error for isDefaultPattern