Fixed error in references file assignment