fixed post template bug