fixes compile error from uninitialized variable