fix src deletion bug