fixed missing variable init