Bug found in delete functionality. fixed