Fix quote method bug