fix rename error loop