Fix for append() error

Change-Id: Iebf8a7e02e180b8e530152f5baa62e2b8515f351