fixes in appli/inv
fixed some stuff