Fix addon destroy and remove unused variable