fix api entities