Fixed typo and missing dict initialization