Do not overwrite the staet of the applications which are not opened.