fix for returning val from void func
Merge pull request #823 from monkeyiq/2013sep/issues/753v2

fix for returning val from void func