fix various errors manage wie