fixed issue related to _id of nested arrays