fix bug in edoc view