getting an undefined in the select routes