Changed window id initialisation.