fixed a bug regarding uninitialized values when inserting UDN objects to database