r50: bugfix - uninitialized var in corner cases