bug fix for trialoftheking