Fix generate posts