bug fixed #329