fixed crash when --tables is not supplied