fixed duplicate user supplied key bug