fix typo and use .select safely