Default attributes were not overrided. Fixed

It's better to use HashMap