fixed indexes recreate on restore for ruby 1.8.7