need to fix nested block join