Fix crash in user offline