Fix bugs

fixed the bugs of append img a