Fix bug document edit view