fixes for dom lateness