Fix pid array access

Signed-off-by: Dima Kuznetsov <dkuznets@redhat.com>