fix build error
Test passed on OS X