simplification bug fix