bug fixed #46