fix read of uninitialized value. Thanks valgrind!