fix rename and delete file