fix minor bug when author is not defined in the post