resolved ajax bug