fixed bug in system.js
fixed bug when user is deleted