fix nested block definition