Fixed Num deprecation errors.