Fix dialyzer errors from hibernate changes.