fix bug with unopened div