Fix bug of linear reduction