Correcting app restart