Fix refs with special symbols