FIXED BUG WITH APPEND