fix patch to extend session id