fix select of fields when running on Windows