Whose relationship with Khazars improved