bug fixed #6