Bug fix for when no apiRoot is defined