bug-fixed customized index