fixed issue #36
Merge branch 'v0.12.x_bugfix' into v0.12.x