fixed way check session is called 2