Properly handle output of indices from static table