Fix variable population with proper attribute call