fix for #82 (index mode sdfsdf crash)