delete template which not needed
fixed some bugs in percent query module