fixed permission issues for deleting stat entries