Fixed a bug that would cause the session to not renew.