fix typo and add in missing call to getNames

Change-Id: I02c89567949525f1465cbc1ccf05418229ab953a