Fix bug for 4.2.0.beta.1

issue#38