fix bugs of atom