Fix wrong filename being copied