fix diagonal