fixed a subtle bug when parsing quote expressions