fix bug for get online/offline users when use with user-defined users