Fixed a Transactional problem on hibernate