fix wrong primary definition