FIX: issue #883 (Access error when writing APK)