fix bug in print schedule