Changed DESTROY_OLD_WINDOW flag