fixed #378