BUG: fix windows compilation bug, see detail below

the previous version causes compilation error in WIndows. Because there are default parameters in function implementation. this is corrected.