fixed a minor bug for quote