Settings: throw IndexError on wrong index

This is better because you can just catch index error
and if youre doing something wrong you'll get it.