fixed #330