fixes closing div problem