Fixed NPE when trying to get session data