fix postsManager.php