fixed when post object is not global