Fixed download key bug

Download key was being relocated by the query preview, prevented the
relocation and cloned the key for the query preview form instead.