Fixed a cross-platform issue.