Fix typo in get-names function call

Missing :last key.