Fix the _RemoveBlockDevLinks() function