Fix alias wiring when loading aliases from db