Fixed error with using numeric type