Fix after change to API