wrong variable

$data is suppose to be $args