fixed the hibernate duplicate error issue