Bump to 1.4.0.beta8
fix middlewaref