Get rid of warnings when creating indices