fixed #337