fixed ajax destroy template bug