Fixed undefined variable name 'table' in print statement