fixes for reverse indexes