fixed another indexing error. -.-