Fix infinite append Bug