Fix for issue #109

It fixed the compilation issues but I'm not sure what value should it return.