bug fixed #8