bugfix: incorrect name of a variable. $data renamed to $submit_data