clean up more mistakes from the file operation patch