Fix Num type error