Fixed bug that prevented scheduled cases to be created.