windows phone version runs fine in emulator