fixed bug in serialDoc