Quote document bug fix