fixed #377