fixed AUTO_LIMIT_QUERY_PATTERN