Fix appendTo/ready bug