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