[widgets] Fix broken session handling