fix uninitialized return values