bug fixed #9