fix 'application is damaged' error