fixed typing errors that broke part of index