Finally fix the incomplete post generation bug