fixing rmc when no selectindex