fixing broken references