fixed #332