Fixing bug of accessing api key in the Peakium Object