Immigration agency internal affairs boss replaced