bug fixed #3