Fix for renamed api