fix bug in reset index type

Thanks for another great bundle!  Can you please merge this change to the main project?