fixed a bug for 1.7.12
v1.7.18