fixing a bug in the newposts component