fixed cross-platform issue