Revert "modificando if del index"

This reverts commit 48bb3520baf4e8da1de38d82cd2879ad7cccce27.