fix getMissingVal method which somehow didnt get updated when adding defaultVal param