Fixed some errors on empty windows systems