For first four actinide elements Th$\ce{Th}$,Pa $\ce{Pa}$,U $\ce{U}$ and Np$\ce{Np}$, the difference in energy between 5f$\mathrm{5f}$ and 6d$\mathrm{6d}$ orbitals is small. Thus in elements electrons may occupy the 5f$\mathrm{5f}$ or 6d$\mathrm{6d}$ levels or sometimes both.
Later in actinide series the 5f$\mathrm{5f}$ do become appreciable lower in energy ,thus thus from Pa$\ce{Pa}$ onward the 5f$\mathrm{5f}$ shells fill in regular way.:-)