bug fixed #51