Fixed variable key string being null