fix painting links