fixed a bug in SW -> NE diagonal