fixed nested block inheritance bug