fix bug in reset index type