fixed bug #10 where it duplicats people when it detects invalid people