bug fixed #236