Fix bug for 4.2.0.beta.1

fix issue#38