ML API: bugfixes

Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
ML API: bugfixes

Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
ML API: bugfixes
ML API: bugfixes

Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>