Get the correct 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.