Fixed dumb mistake in schedule handler