bug in manage.js