fix user profile issue and online/offline issue