fix bug in profile_data by when specifying profile_number
Merge pull request #1 from jschwab/master

fix bug in profile_data by when specifying profile_number