Fixed cross platform issue.