bugfix in calculated attributes