Nikkei is better correlated with the inverse of Yen, which is correlated with Dollar, which is again inversely correlated with spy. The inverse correlation between dollar and spy didn't hold in July, when both rose. That's where the divergence starts to show up in your chart.