I have a feeling it's related to the dynasty, 漢 has 帝s (漢文帝,漢武帝), while 宋 (宋仁宗, 宋高宗) and 明 (明宣宗, 明英宗) have 宗s.
This answer by /u/lordtiandao should sort out your issue.