Fixed #377.