fixed append problem