fix rename and delete cases