fix name resolution issue for key upload