Fix api mistake

Signed-off-by: Jonas Kalderstam <jonas@kalderstam.se>