fix the hibernate connection bug