safer set

Makes set work if you have unmapped attributes