Correct ajax block remove useless code