fixing issues with archiving the app