fix bug in quote threading