Fixed #5195: fix compiling issue with -x update