Fix weird unused variable warning when archiving the project