fixed hibernate resources