fix rename event handler