Fix api paths