Fixed key storing issue

It now works