Fix Windows 8 mobile bug