delete redundant end div tag