Fix broken type inference when setting user default