fixed bug: wrong isRoot value used in changePass