fixed #249