fixes hibernate type issue