Additional protection in case of negative indexes. More investigation is needed