fix for hibernate stability