fix for restart apps