Fixes the error TypeError: list indices must be integers, not str