crash while index creation bugfix.