Fixed WP8 bug

Fixed the WP8 bug