The problem is that as the session is being created at the beggining (I don’t know why) it triggers the ‘wrong’ conditions.