fixed wrong initialization of an object variable