added warn on nil attrs