Use the right function for the index ctor