Fixed problems in release in win