fix attr_writer
define a default to_h for component