fixes to init window