fix bug with quote being nil