patched session hibernate