bugfix: check if pid is object or array