minor fix to public credential upload