fix bug for quartz