Fix #5 where templates can have no schedule