fixed minor appendTo bug