remove obsolete ending div