Fixing bug in presence message