fixed following ajax bug