Fixed install bug with old reference-id's on install.