fix broken references