Ajax chain corrected on parent change