Windows fixes
Dialog fix