Fixed undefined index, selectors.