Fixed bug with autoindexing always on