fix flatdoc