fix compilation errors about values returned.