fix incorrect referances