Fix runtime api