fix bug and Delete Funtion
fix a small small bug