Fixed assertion
Version bump to 0.5.0.beta2