fixed typo in quote handling