Fixed removing not-used tables