fix errors in manage