fixed issue #157 constant reduce