hopeful nil value fix