bugfix: prevented an nil arugment passing to pairs()