fixing duplicate blocks