fixing global post id problems