fix postmanager when total posts less than limit