Fixing the setdefault issue.