fixed bug with -nopart trying to access table that does not always exist