fix bugs with name component