fixing typo in setdefault() function call