fixed #342