fix getprimary