Fixed the reading of the attributes, accidentally tried to read default values. Also added additional guard conditions for default values.