fixed patterns in case expr.