fix some ajax mistake