fixing HashMap to avoid errors when running the app.