fix mac and windows diff bug