Delete Function Bug Fixed