fix bug createautoindex