Fixed bug in post detail template