Fix api controllers