Fixed bug where p_data would cause an error for packages that didn't have data.