fix doc flow