fixed Attrs and Tags NullPointerException