Fixed a bug with post template