Fixed Profile saving & loading

The saveData() & loadData() functions each contained minor bugs
introduced when Profile was moved out of Core.