fix if post does not exist, ie empty db