update unclosed div