api: also fix nvapi mapping and double swap on histo