fixed a warning when compiling in serial mode