fixed Attrs bug
fixed Attrs and Tags NullPointerException