Fix big bug on sessions