Fixed std::num change related errors.