Fix Windows bug