Fixed bug with reinitialization window in debug mode.