Fix, able to perbuild/visit higher than rank

The perbuild was still allowing for the error of being able to perbuild higher than your rank, pervisit had the issue too.