fixed portability bug
fixed portability bug