Fix bug with not showing the task due to multiple task sessions