CoreWindow fix