Fix: check if quartz exists