fixed compile fail
fixed return type is not right
Merge pull request #6390 from Dhilan007/v3

fixed compile fail on wp8