fix bug delete