fixed win8 & linux bug