fixed small incompatibility with windows