fixed bugs in publishing document sectins