FIX: Fix bad file overwrite