Small correction

I propose we use the right variables ;) 
$data was never set