fix quotedetector problem