fix problems hibernate transactions