Fixed behavior of detecting windows. Was detecting on the client, not the server.