fix hibernate offset