Fixed bug in multi index select.