fixed append error