fixed issue with uerstructs caused by invalid entries in db.