fixed template issue with posts page