added assert for index out-of-bounds access with tecnbras (nw)