fixed #335