Fix user key creation