bugfix in value decorator