fixed undefined variable values in tables and params