fixed #8
thanks @dengzhp