bug in appendData fixed