Script for fixing files