Remove notice

Remove notice by using the right index in session
Merge pull request #2 from Rahe/patch-2

Remove notice