fix to initial dom append