fix issue with undefined variable $data_props