fix broken attribute references