Fixing "Delete All" function.