Fixed errors on Windows