fixed append() bug