bugfix for uninitialized variable