fixed check for WINRT