fix schedule bugs