fixed missing variable instantiation