fix bug in key server's delete creds logic