fix post_id

previous method threw an error when no posts were found