Fixing double underscore typo which caused variable not to be stored