[bugfix] check window types