fix schedule definition