fixed check_win