simple fix for zero length observations