Fix potential crash with quartz blocks