fix bug in openbaredocument template