fixed error when n.likes = 0 or n.comments = 0 in getPost