Fix build error because error init has change.