namespace fix

When models are in namespace the generated key causes error in the UI