fix issue with default empty doc array