Fixes incorrect session information being set