Fix empty slot problem for Remove- cmdlet