DOM wrong layer kind

If I have the document with artboards then the group end of that artboard which is the most bottom layer at the same time is detected with layer kind 12(background) instead of 13(group end)