removing nil attribs in schema