Fix 'return outside the function' error.
Fix compilation error for interprent langs.