Fix errors with Quartz demo