corrected hibernate session issues.