Fix quick reply algirithm