fix to setPresence