fixing diagonals