fix attrs being set even if they weren't defined [closes #3]