fixed double creation of windows
$do_bell should always be int