Get the rights values of position from session

The session manager was always reading (0,0) has the position of the page.
Correct a part of #183

There may be a better way of doing that.
Merge pull request #280 from Cqoicebordel/patch-3

Get the correct values of position from session