Fix profile session bug