Fixed bug with extracting the main section index of a new view controller